package com.dragon.modules.yuegou.service.merchant;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dragon.modules.yuegou.entity.merchant.MerchantLevelRuleDetailEntity;
import com.dragon.modules.yuegou.model.order.Order;

import java.math.BigDecimal;

/**
 * 等级规则-明细 服务接口
 *
 * @author pbuilder generated
 * @date 2019-09-23 15:29:06
 * @version 2.0
 */
public interface MerchantLevelRuleDetailService
		extends IService<MerchantLevelRuleDetailEntity> {

	/**
	 * 根据选择获取需支付金额
	 * 
	 * @param detailId
	 * @return
	 */
	BigDecimal getPayByDetailId(String merchantId,String detailId);

	/**
	 * 下单
	 * 
	 * @param detailId
	 * @param merchantId
	 * @return
	 */
	Order order(String detailId, String merchantId);

	/**
	 * 支付回调
	 * 
	 * @param orderNo
	 */
	void payCallBack(String orderNo);
}